﻿using System;
using System.Web.Mvc;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;

namespace Caramel.Web.Mvc.Castle
{
	public class MvcInstaller : IWindsorInstaller
	{
		public void Install(IWindsorContainer container, IConfigurationStore store)
		{
			container.
				Register(
					Component.
						For<IControllerActivator>().
						ImplementedBy<ServiceLocatorControllerActivator>()
				);
		}
	}
}
